package com.hmall.order.config;

import com.hmall.order.interceptors.AuthorizationHandlerInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author Vsunks.v
 * @Date 2022/8/12 20:12
 * @Blog blog.sunxiaowei.net/996.mba
 * @Description:
 */
@Configuration
public class MvcConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AuthorizationHandlerInterceptor()).addPathPatterns("/order/**");
    }
}
